//
//  PictureListSortCell.m
//  jingdongfang
//
//  Created by RKL on 2018/5/11.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "PictureListSortCell.h"

@implementation PictureListSortCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        [self privateUI];
        self.backgroundColor = [UIColor whiteColor];
        self.contentView.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

#pragma mark - 构建UI
- (void)privateUI
{
    self.iconImageView = ({
        UIImageView * imageView = [[UIImageView alloc] init];
        imageView.frame = CGRectMake(15, 5, 65, 65);
//        imageView.backgroundColor = [UIColor redColor];
        imageView;
    });
    [self.contentView addSubview:self.iconImageView];
    
    
    self.picNameLabel = ({
        UILabel * label = [UILabel creatLabelWithText:@""
                                           FontOfSize:16
                                            textColor:RGB(54, 54, 54)];
        label.frame = CGRectMake(95, 25, 150, 16);
        label;
    });
    [self.contentView addSubview:self.picNameLabel];
    
    self.authorNameLabel = ({
        UILabel * label = [UILabel creatLabelWithText:@""
                                           FontOfSize:14
                                            textColor:RGB(146, 146, 146)];
        label.frame = CGRectMake(95, 45, 150, 14);
        label;
    });
    [self.contentView addSubview:self.authorNameLabel];
    
    UIImageView * dragImageView = ({
        UIImageView * imageView = [[UIImageView alloc] init];
        imageView.frame = CGRectMake(KSCREENWIDTH-35, 32, 20, 12);
        imageView.image = [UIImage imageNamed:@"pic_drap"];
        imageView;
    });
    [self.contentView addSubview:dragImageView];
    
    
    
    UIView * lineView = [[UIView alloc] initWithFrame:CGRectMake(0, 75, KSCREENWIDTH, 1)];
    lineView.backgroundColor = RGB(242, 244, 248);
    [self.contentView addSubview:lineView];
}

@end











